#include"ThreadPool.hpp"
#include"Task.hpp"
#include<ctime>
#include<unistd.h>
#include<cstdlib>

int main()
{
 ThreadPool<Task> *tp=new ThreadPool<Task>();
 tp->InitThreadPool();
  srand((unsigned long)time(nullptr));
 const char* op="+-*/%";
 while(1)
{
   int x = rand()%100+1;
   int y = rand()%100+1;
    
    Task t(x,y,op[x%5]);
 
    tp->push(t);    
  // sleep(1);
}

   
  return 0;
}
